<!DOCTYPE html>
<html>
<head>
<title>{$site_name}</title>
<meta name="keywords" content="{$site_seo_keywords}" />
<meta name="description" content="{$site_seo_description}">
<tc_include file="Public:head" />
</head>

<body class="body-white">
	<tc_include file="Public:nav" />

	<div id="login">
		<div class="produ">

			<div class="show frameEdit" frameinfo="loginAdv|600X380/0X0">
				<a href="{:leuu('user/login/index')}"><img src="__TMPL__Public/assets/images/8c4397b2-53a8-474b-915c-176d03eede85.jpg" alt="" title="#" width="600px" height="380px"></a>
			</div>
		</div>
		<form method="post" id="loginForm" action="{:U('user/login/dologin')}" name="loginForm" onsubmit="return check_form();">
			<div class="login_box" style="margin-top:17px">
				<div class="box">
					<h2>致科药品信息网用户登录</h2>
					<div class="fixBox">
						<label>登录帐号：</label>
						<div class="put"><input id="loginId" name="username" value="" type="text" placeholder="请输入电子邮箱" tabindex="1" style="color: black;" required></div>
						<div class="clear"></div>
					</div>
					<div class="fixBox">
						<label>密 码：</label>
						<div class="put"><input type="password" id="password" name="password" tabindex="2" required></div>
						<div class="clear"></div>

					</div>
					<div class="fixBox" style="" id="validateCodeField">
						<label>验证码：</label>
						<div class="put"><input class="code" type="text" name="verify" id="input_verify" maxlength="4" tabindex="3" required></div>
						{:sp_verifycode_img('length=4&font_size=14&width=100&height=34&charset=2345678&use_noise=1&use_curve=0')}
					</div>
					<div class="btnArea">
						<div class="btn"><a href="javascript:;" onclick="$('#loginForm').submit();">登录</a></div>
						<div class="forget"><a href="{:U('user/login/forgot_password')}">忘记密码？</a></div>
						<div class="clear"></div>
					</div>
					<div class="doles">
						<h1>还不是致科药品信息网用户？</h1>
						<p><a href="{:leuu('user/register/index')}">注册成为新用户</a></p>
					</div>
				</div>
				<div class="b_line"></div>
			</div>
			<div class="clear"></div>
		</form>
	</div>

		<tc_include file="Public:footer" />

	<script>
		function check_form(){
			var username = $("input[name='username']").val();
			var password = $("input[name='password']").val();
			var verify = $("input[name='verify']").val();
			if(username == ''){
				alert("登录账号不能为空!");return false;
			}
			if(password == ''){
				alert("密码不能为空!");return false;
			}
			if(verify == ''){
//				alert("验证码不能为空!");return false;
			}
		}
	</script>
</body>
</html>